package com.tarena.lbs.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Schema(name = "优惠券实体类")
public class Coupon {
    @Schema(description = "主键 ID")
    private Integer id;
    @Schema(description = "商家 ID")
    private Integer businessId;
    @Schema(description = "优惠券名称")
    private String couponName;
    @Schema(description = "抵扣金额")
    private BigDecimal discountValue;
    @Schema(description = "最大折扣金额")
    private BigDecimal maxDiscountAmount;
    @Schema(description = "使用范围")
    private String applicable;
    @Schema(description = "总共可被领取次数")
    private Integer usageLimit;
    @Schema(description = "单次消费最多使用限制")
    private Integer maxUsageLimit;
    @Schema(description = "开始时间")
    private Date startDate;
    @Schema(description = "结束时间")
    private Date endDate;
    @Schema(description = "状态（激活、过期、禁用等）")
    private Integer status;
    @Schema(description = "说明")
    private String describes;
    @Schema(description = "创建时间")
    private Date createAt;
    @Schema(description = "更新时间")
    private Date updateAt;
    @Schema(description = "优惠券类型")
    private Integer couponType;
    @Schema(description = "领取数量")
    private Integer usageNum;
    @Schema(description = "启用状态")
    private Integer enableStatus;
    @Schema(description = "互斥规则")
    private Integer exclusionType;
    @Schema(description = "订单满多少元可用")
    private BigDecimal orderAmount;
}